package code09_final和抽象类;

public abstract class MotoVehicle {
	private String no; // 车牌号
	private String name; // 名称

	public MotoVehicle() {
		super();
	}

	public MotoVehicle(String no, String name) {
		super();
		this.no = no;
		this.name = name;
	}

	public String getNo() {
		return no;
	}

	public void setNo(String no) {
		this.no = no;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	// 抽象方法，计算租金
	public abstract int calcRent(int day);

}
